public class Money{
	private int Amount;
	private String Currency;
	public Money(int amount, String currency){
		Amount=amount;
		Currency=currency;
	}
	public int amount(){
		return Amount;
	}
	public String currency(){
		return Currency;
	}
	public Money add(Money m){
		return new Money(amount()+m.amount(), currency());
	}
	public boolean equals(Object anObject){
		if(anObject instanceof Money){
			Money aMoney=(Money)anObject;
			return aMoney.currency().equals(currency()) && amount()==aMoney.amount();
		}
		return false;
	}
}
